package org.battery.dataSource;

public class ContextHolder {
	private static final ThreadLocal<Object> holder = new ThreadLocal<Object>();

	public static void setDbType(DBType type){
		holder.set(type);
	}

	public static DBType getDbType(){
		return (DBType) holder.get();
	}

	public static void clearDbType(){
		holder.remove();
	}

}
